package com.xxx.datalake.DAO;

import com.xxx.datalake.entity.Metadata;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @ Project: datalake
 * @ Since: 2022/9/15 17:27
 * @ Description:
 */
//这里可以自己定义一些查询
public interface ElasticsearchDao extends ElasticsearchRepository<Metadata,Long> {

    //namespace
    List<Metadata> findByNamespaceIsLike(String namespaceString);

    //
    List<Metadata> getMetadataByNamespaceContains(String namespaceString);


}
